package com.paw.junit.controller;

import cn.hutool.core.date.DateUtil;
import com.paw.junit.service.SkyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lvzihai
 * @date 2021/7/28
 **/
@RestController
public class SkyController {

  @Autowired
  private SkyService skyService;

  @GetMapping("/sky")
  public String sky(){
    return DateUtil.now();
  }


  @PostMapping("/deliver")
  public String deliver(String box){

    return skyService.deliver(box);
  }

}
